package com.example;

import com.abstractClass.Student;

public class AppMain {

    /*主应用 程序的入口 */
    public static void main(String[] args) {
        test("张三");
        int a = 10;
        int b = 20, c = 30;
        System.out.println(a + b + c);
        System.out.println("HelloWord");

        Dog dog = new Dog("Dog", 1, "Black");
        dog.getName();
        dog.bark();
        dog.testDog();
        System.out.println(Animal.count);
        dog.countAdd();
        dog.numAdd();

        Dog dog2 = new Dog("Dog2", 2, "White");
        dog2.countAdd();
        System.out.println(dog2.count);
        dog2.numAdd();

        Student studentOne = new Student();
        studentOne.sayHello();

        // 读取全局的配置文件
        System.out.println(AppConfig.APP_NAME);
    }

    public static String test(String name) {
        String targetName = "hello" + "\t" + name;
        System.out.println(targetName);
        return targetName;
    }
}
